﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Vit.Web.Mvc.DataAnnotations;

namespace Vit.Web.Models
{
    public class CategoryPropertyValue
    {
        [Key]
        [StringLength(50)]
        [Required]
        [Column(Order = 1)]
        public string CategoryItemName { get; set; }

        [Key]
        [StringLength(50)]
        [Required]
        [Column(Order = 2)]
        public string PropertyName { get; set; }

        [Key]
        [StringLength(200)]
        [Required]
        [Column(Order = 3)]
        public string ObjectType { get; set; }

        [Key]
        [StringLength(200)]
        [Required]
        [Column(Order = 4)]
        public string ObjectID { get; set; }

        [MaxLength]
        public string Value { get; set; }

        public virtual CategoryProperty Property { get; set; }
    }
}